package cn.accp.fruitWar.baseEntity.entity;

import cn.accp.fruitWar.baseEntity.Fruit;

/**
 * 苹果类
 * 
 * @author Jiangqs
 * 
 */
public class Apple extends Fruit {

	public Apple() {
		super("红富士", "红", 1);
	}

	public Apple(Apple apple) {
		super(apple);
	}

	public Apple(String name, String color, double weight) {
		super(name, color, weight);
	}

	@Override
	public void fly() {
		System.out.println("苹果，" + this.getName() + "," + this.getColor()
				+ ",重量" + this.getWeight() + "，飞起来了！");
	}

	@Override
	public void cut() {
		System.out.println("苹果，" + this.getName() + "," + this.getColor()
				+ ",重量" + this.getWeight() + "，被切开了！");
	}
}
